<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<FiltronASP.Areas.Admin.ViewModels.Languages.LanguagesCreateEditDeleteViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Usuwanie wersji językowej
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div class="right-page-item">
        <br/><br/>
        Czy na pewno usunąć wybraną wersję językową (<%= Model.LanguageToOperateWith.language_name%>)?
        <% Html.BeginForm("DeleteConfirmed", "Languages", FormMethod.Post, new { name = "deleteLanguageForm" }); %>
            <%= Html.HiddenFor(m => Model.LanguageToOperateWith.language_id)%>
            <% if (Model.CurrentLanguage != null) { %>
                <%= Html.HiddenFor(m => Model.CurrentLanguage.language_id) %>
            <% }    //if %>                
	    <% Html.EndForm(); %>
        <div class="right-page-buttons">
		    <span class="button2" onclick="history.back();">Anuluj</span>
			<span class="button2" onclick="document.forms['deleteLanguageForm'].submit();">Usuń</span> 
        </div>
    </div>        

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
    Usuwanie wersji językowej
</asp:Content>
